<template>
    <div>
        <el-carousel
        height="300px"
        :loop="true"
        :interval=10000
    >
    <!-- 遍历轮播图片 -->
    <el-carousel-item v-for="image in images" :key="image.id">
            <el-image
                :src="image.imageUrl"
                fit="fill"
                style="width:100%; height:100%"
            ></el-image>
        </el-carousel-item>
    </el-carousel>
    </div>
</template>

<script>
export default {
    data() {
        return {
            images:[
                {imageUrl: require("@/assets/images/first/introduce01.png"), id: 1},
                {imageUrl: require("@/assets/images/first/introduce02.jpg"), id: 2},
                {imageUrl: require("@/assets/images/first/introduce03.jpg"), id: 3},
                {imageUrl: require("@/assets/images/first/introduce04.jpg"), id: 4},
                {imageUrl: require("@/assets/images/first/introduce05.jpg"), id: 5},
                {imageUrl: require("@/assets/images/first/introduce06.png"), id: 6}
            ]
        };
    }
};
</script>

<style>
</style>